<div style="width: 368px">
  <lv-popover
    [lvContent]="content"
    [lvFooter]="footerTemplate"
    lvTrigger="customize"
    [(lvVisible)]="visible"
    [lvOrigin]="originEle"
  ></lv-popover>
  <ng-template #footerTemplate let-data>
    <div style="display: flex; justify-content: flex-end; margin-top: 16px">
      <lv-group lvGutter="0.16rem">
        <button lv-button (click)="cancel()">取消</button>
        <button lv-button [lvLoading]="loading" lvLoadingText="loading" lvType="primary" (click)="confirm()">确定</button>
      </lv-group>
    </div>
  </ng-template>

  <lv-upload
    (lvChange)="change($event)"
    lvUrl="/sails/api/v1/upload"
    lvAutoUpload
    lvAccept="image/jpeg,image/png"
    lvMultiple
    [(lvFiles)]="files"
    [lvBeforeRemove]="beforeRemove"
  ></lv-upload>
</div>
